package it.scambiocorse.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;

public class ServiziIdExtractor implements ResultSetExtractor {



	public ServiziIdExtractor() {}
  public ArrayList<Integer> extractData(ResultSet resultSet) throws SQLException, DataAccessException {
   
  	if (resultSet.next()) {
  		int row = resultSet.getRow();
  		System.out.println("DIO ESTER");
  	}
  	
  	
  	
    
    ArrayList<Integer> ret = null;
//    if (row > 0) {
//    	ret = new ArrayList<Integer>();
//    	for (int i=0;i<=row;i++) {
//    		resultSet.next();
//    		ret.add(resultSet.getInt(1));
//    	}
//    }
    
    return ret;
  }


}